package com.easygoods.dao;

import com.easygoods.base.BaseDao;
import com.easygoods.entity.MissionTeam;
import com.easygoods.entityex.TeamMember;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by 许崇雷 on 2019-02-25.
 */
@Repository
public interface MissionTeamDao extends BaseDao<MissionTeam> {

    //获取团队任务完成了多少
    BigDecimal sumTeamAmount(@Param("teamId") String teamId);

    //获取团队成员贡献值,倒序排列
    List<TeamMember> getTeamMemberList(String teamId);
}
